package stu.khy.ssm.entity;

import java.util.Date;

public class BackUser {
	 /** 主键id */
    private int  id ;
    /** 用户编码 */
    private String usercode ;
    /** 用户名称 */
    private String username ;
    /** 用户角色类型（来源于数据字典表，分为：超管、财务、市场、运营、销售） */
    private int usertype ;
    /** 创建者（来源于backend_user用户表的用户id） */
    private int createdby ;
    /** 创建时间 */
    private Date creationdate ;
    /** 更新者（来源于backend_user用户表的用户id） */
    private int modifyby ;
    /** 最新更新时间 */
    private Date modifydate ;
    /** 用户密码 */
    private String userpassword ;
	public void setId(int id) {
		this.id = id;
	}
	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setUsertype(int usertype) {
		this.usertype = usertype;
	}
	public void setCreatedby(int createdby) {
		this.createdby = createdby;
	}
	public void setCreationdate(Date creationdate) {
		this.creationdate = creationdate;
	}
	public void setModifyby(int modifyby) {
		this.modifyby = modifyby;
	}
	@Override
	public String toString() {
		return "BackUser [id=" + id + ", usercode=" + usercode + ", username=" + username + ", usertype=" + usertype
				+ ", createdby=" + createdby + ", creationdate=" + creationdate + ", modifyby=" + modifyby
				+ ", modifydate=" + modifydate + ", userpassword=" + userpassword + ", getClass()=" + getClass()
				+ ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
	}
	public BackUser() {
		super();
	}
	public BackUser(int id, String usercode, String username, int usertype, int createdby, Date creationdate,
			int modifyby, Date modifydate, String userpassword) {
		super();
		this.id = id;
		this.usercode = usercode;
		this.username = username;
		this.usertype = usertype;
		this.createdby = createdby;
		this.creationdate = creationdate;
		this.modifyby = modifyby;
		this.modifydate = modifydate;
		this.userpassword = userpassword;
	}
	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}
	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}
    
}
